/*
 * @Author: zhang zhijiang 2824735304@qq.com
 * @Date: 2024-12-06 21:44:20
 * @LastEditors: zhang zhijiang 2824735304@qq.com
 * @LastEditTime: 2024-12-10 19:11:54
 * @FilePath: /linux/test_12_6/server.cc
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#include"comman.hpp"
#include"log.hpp"
int main()
{
    //  cout<<sum(1, 10)<<endl;
    // cout<<sum(3,5,6,7)<<endl;
    // cout<<sum(4,5,6,7,8)<<endl;
    //  time_t t = time(nullptr);
    // struct  tm* time = localtime(&t);
    // logmessage(info,"hello");
    
    // printf("%d %d %d  %d-%d-%d",time->tm_year+1900,time->tm_mon+1,time->tm_mday,time->tm_hour,time->tm_min,time->tm_sec);
//    init s;
//    //打开文件
//    int m = open(path,O_RDONLY);
//    if(m==-1)
//    {
//     perror("open");
//     exit(open_error);
//    }
//    //读取
//    while(true)
//    {
//     char buffer[1024]; 
//     buffer[0] = 0;//表明将数组当做字符串用
//    int k = read(m,buffer,sizeof(buffer));
//    if(k==-1)
//    {
//     perror("read");
//     exit(read_error);
//    }
//    if(k==0)
//    break;
//    buffer[k] = 0;
//    cout<<"server read:"<<buffer<<endl;
//    }
//     close(m);
  
    return 0;
}